Skip to content

research(ui): 轨迹与阶段/丢弃记录的相关分析脚本 (#194/#73) - #202

Merged
JavaZeroo merged 1 commit into
mainfrom
research/trace-analyzer
Oct 29, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
research/trace-analyzer

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

新增只读分析脚本 research/ui/analyze_output_trace.py:把场景产物里的三份诊断文件拼成一张时间线。

  • 读 output-trace.jsonl(输出块/输入块、终端号、网格尺寸、repaint 标记);
  • 读 actions-progress.jsonl 或 *-progress.jsonl(阶段与 t_ms);
  • 读 selection-discard.jsonl(丢弃原因、行号、字节/列数);
  • 对每条丢弃打印前后阶段,并列出 ±2 秒内的重绘批次及其消费时刻网格。

实际输出示例(本地全绿运行)

== run-el4xnl28/local-0
   discard row-text-changed row=0 between live-selected and invalidated-copy-rejected saved_bytes=23 current_bytes=17 saved_columns=74 current_columns=74
      repaint t=471562 terminal=1 columns=111 rows=7 bytes=210
      repaint t=471640 terminal=1 columns=149 rows=10 bytes=231
      repaint t=471687 terminal=1 columns=111 rows=7 bytes=210

即同一轮里重绘批次分别以 111×7 与 149×10 被消费——正是 #194 需要的"消费时刻几何"证据。

边界

Refs #194 #73

…efs #194 #73

A read-only script prints, per discard, the surrounding phases and the repaint batches within two seconds together with the grid each batch was consumed at, so artifacts can be interpreted without bespoke scripts.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T19:43:00.698985Z 42f4b39 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@JavaZeroo
JavaZeroo merged commit 96fc8e1 into main Oct 29, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant